<?php
header('Content-type: text/json');
// header("Content-type: application/json; charset=utf-8");
require_once("config.php");
if(false && APP_DEBUG)
{
    ini_set('display_errors', 'On');
    error_reporting(E_ALL);
}else
{
    error_reporting(0);
}
require_once(S_ROOT."source/common.php");
require_once(S_ROOT."source/myfun.php");
require_once(S_ROOT."source/autoload.php");
$tp = $_GET["tp"];
if(empty($tp))
{
    echo 'welcome';
    exit;
}else
{
    include_once(S_ROOT."source/{$tp}.php");
}